home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / 02 modules and namespaces / modulesdemo / optionstrictoff.vb < prev   
Encoding:
Text File  |  2001-07-28  |  386 b   |  16 lines

  1. ' this file gathers a few code samples that require Option Strict Off
  2. Option Strict Off
  3.  
  4. Module OptionStrictOff
  5.  
  6.     Sub TestArrayLateBinding()
  7.         Dim arr3(,) As Integer = {{0, 1, 2, 3}, {0, 10, 20, 30}}
  8.  
  9.         ' (This code assumes that Option Strict is Off.)
  10.         Dim o As Object = arr3
  11.         Console.WriteLine(o(1, 1))      ' => 10
  12.  
  13.     End Sub
  14.  
  15. End Module
  16.